const _import = require('./_import_' + process.env.ROUT_MODE)
let trainingCenter = {
  path: 'training-center',
  name: '培训中心',
  component: {
    render (c) {
      return c('router-view')
    }
  },
  children: [{
    path: 'serviceProvider',
    name: '服务商管理',
    redirect: 'serviceProvider/serviceProvider-list',
    component: {
      render (c) {
        return c('router-view')
      }
    },
    children: [{
      path: 'serviceProvider-list',
      name: '服务商列表',
      component: _import(
        'training-center/serviceProvider/serviceProvider-list'
      ),
      children: [
        {
          path: 'serviceProvider-details',
          name: '服务商详情',
          component: _import(
            'training-center/serviceProvider/serviceProvider-list/serviceProvider-details'
          ),
          meta: {
            isSub: true
         }
        }
      ]
    },
    {
      path: 'statements',
      name: '服务商对账单',
      component: _import(
        'training-center/serviceProvider/statements'
      ),
    }]
  },{
    path: 'reManagement',
    name: '报名管理',
    redirect: 'reManagement/applyList',
    component: {
      render (c) {
        return c('router-view')
      }
    },
    children:[{
      path: 'gradesList',
      name: '成绩列表',
      component: _import('training-center/reManagement/grades/gradesList'),
      children: [{
        path: "gradesDetails",
        name: "查看",
        component: _import("training-center/reManagement/grades/gradesDetails"),
        meta: {
          isSub: true
        }
        }]
      },{
        path: 'relist',
        name: '报名管理',
        component: _import('training-center/reManagement/reManagementList/relist'),
        children: [{
          path: "reDetails",
          name: "查看",
          component: _import("training-center/reManagement/reManagementList/reDetails"),
          meta: {
            isSub: true
          }
          }]
        },{
          path: 'applyList',
          name: '报名列表',
          component: _import('training-center/reManagement/applyList'),
          children: [{
            path: "applyDetails",
            name: "查看",
            component: _import("training-center/reManagement/reManagementList/applyDetails"),
            meta: {
              isSub: true
            }
            }]
          }]
    }
  ]
}
export default trainingCenter
